﻿using Microsoft.Data.Sqlite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SSC.Services
{
    /// <summary>
    /// 数据库接口，允许采用其他数据库实现
    /// </summary>
    interface IDatabaseService
    {
        List<T> GetAll<T>(string query, params SqliteParameter[] parameters) where T : new();
        bool ExecuteCommand(string query, params SqliteParameter[] parameters);
    }
}
